package com.nwpu.bigdata.cronJob;

import com.nwpu.bigdata.service.RuleDetectionService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

import com.nwpu.bigdata.service.impl.RuleDetectionServiceImpl;
import org.springframework.stereotype.Component;

/**
 * @version:2018年7月21日上午11:27:16
 */

/**
 * @author Administrator
 *
 */
@Component
public class RuleQuartzJob {
    private static Logger logger = LoggerFactory.getLogger(RuleQuartzJob.class);

    @Autowired
    private RuleDetectionService ruleDetectionService;

    //定期检测规则表中是否违反规则
    public void doRuleTask() {
        ruleDetectionService.ruleProcess();
        System.out.println("###########################");
        
    }


}
